EXEC_NAME=colorcontour
#INCLUDES=include
CC=g++
#GCC_OPTIONS=-Wall -pedantic -I$(INCLUDES)
GCC_OPTIONS=-Wall -pedantic -Iinclude
GL_OPTIONS=-lglut -lGLEW
COPTIONS=$(GCC_OPTIONS) $(GL_OPTIONS)


all: $(EXEC_NAME)

$(EXEC_NAME): initShader.o main.o GLObject3D.o ColorMapObject.o
	$(CC) $(GL_OPTIONS) -o $(EXEC_NAME) main.o initShader.o GLObject3D.o ColorMapObject.o

initShader.o: initShader.cpp
	$(CC) $(GCC_OPTIONS) -c initShader.cpp

main.o: main.cpp initShader.cpp GLObject3D.cpp ColorMapObject.cpp
	$(CC) $(GCC_OPTIONS) -c main.cpp 

GLObject3D.o:	GLObject3D.cpp initShader.cpp
	$(CC) $(GCC_OPTIONS) -c GLObject3D.cpp

ColorMapObject.o:	ColorMapObject.cpp GLObject3D.cpp
	$(CC) $(GCC_OPTIONS) -c ColorMapObject.cpp


clean:
	rm -f *.o $(EXEC_NAME)

.PHONY: all clean
